package br.com.webthor.mb;

import java.util.Date;

import br.com.webthor.service.EnderecoService;
import br.com.webthor.service.impl.EnderecoServiceImpl;
import br.com.webthor.vo.EnderecoVO;

public class ConsultarEnderecoMB {
	EnderecoVO endereco = new EnderecoVO();
	EnderecoService enderecoService = new EnderecoServiceImpl();
	String cep = null;
	Date dataHoje = null;
	
	public String consultarEnderecoCep(){
		endereco = enderecoService.consultarEnderecoCep(cep);
		return "success";
	}

	public EnderecoVO getEndereco() {
		return endereco;
	}

	public void setEndereco(EnderecoVO endereco) {
		this.endereco = endereco;
	}

	public EnderecoService getEnderecoService() {
		return enderecoService;
	}

	public void setEnderecoService(EnderecoService enderecoService) {
		this.enderecoService = enderecoService;
	}

	public String getCep() {
		return cep;
	}

	public void setCep(String cep) {
		this.cep = cep;
	}

	public Date getDataHoje() {
		return dataHoje;
	}

	public void setDataHoje(Date dataHoje) {
		this.dataHoje = dataHoje;
	}
	
	
}
